#include <iostream>
using namespace std;
//
int sum(int a[], int n)
{
	int s = 0;
	for (int i = 0;i < n;i++)
	{
		s += a[i];
	}
	return s;
}

int main()
{
	int a[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int s = 0;
	cout << sum(a, 10) << endl;






	return 0;
}